/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nominalitzacions;

import java.io.IOException;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import nominalitzacions.ui.FirstRunViewController;

/**
 *
 * @author genis.sole
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {
            FirstRunViewController FRVC = new FirstRunViewController();
            if(!FRVC.isFirst()) FRVC.setVisible();
            else FRVC.showPrincipalView();
        } catch (IOException ex) {
            String msg = ex.getMessage();
            JOptionPane.showMessageDialog(new JPanel(), msg, "Error writing",
                    JOptionPane.ERROR_MESSAGE);
        }
            
    }

}
